﻿using Volo.Abp;
using 接收日志;

internal class Program
{
    private static async Task Main(string[] args)
    {
        using (var application = AbpApplicationFactory.Create<ReceiveModule>(options =>
        {
            options.UseAutofac();
        }))
        {
            application.Initialize();

            //var messagingService = application
            //    .ServiceProvider
            //    .GetRequiredService<EventMessagingService>();

            //await messagingService.RunAsync();

            await Task.Factory.StartNew(() => { do { } while (true); });

            application.Shutdown();
        }
    }
}